from fastapi import APIRouter

from fastapi_template.apis.internal.health import health_router
from fastapi_template.apis.public.permission import router as permission_router
from fastapi_template.apis.public.role import router as role_router
from fastapi_template.apis.public.user import router as user_router

__all__ = ["root_api_router"]

root_api_router = APIRouter()
root_api_router.include_router(health_router, prefix="/health")

_internal_router = APIRouter()
_internal_router.include_router(health_router)

_public_router = APIRouter()
_public_router.include_router(user_router)
_public_router.include_router(role_router)
_public_router.include_router(permission_router)

root_api_router = APIRouter()
root_api_router.include_router(_internal_router)
root_api_router.include_router(_public_router)
